package com.ys.多线程.p4线程常用方法1设置与获取线程名称;

/**
 * 描述:
 *
 * @author CodeYang
 * @version 2021/1/5 0:19
 */
public class Thread02 extends Thread{


    @Override
    public void run() {
        for (int i = 0; i < 50; i++) {

            System.out.println((i+1)+"次喝");
        }
    }
}
